<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>SecurBot: electronTeleop.py File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="securbotlogo_200x55.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SecurBot
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A cutting edge robotic security platform</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_fe2f98e79845cc4fe8c694bed2318630.html">ros_pkg</a></li><li class="navelem"><a class="el" href="dir_684d670bf52a48c3b316c9fd056965cb.html">securbot_pkg</a></li><li class="navelem"><a class="el" href="dir_9d42a1615d542e1f4a0b12853648c04e.html">scripts</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">electronTeleop.py File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceelectron_teleop"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceelectron_teleop.html">electronTeleop</a></td></tr>
<tr class="memdesc:namespaceelectron_teleop"><td class="mdescLeft">&#160;</td><td class="mdescRight">This script subscribe to the electron node dealing the teleop data coming from the UI, convert those datas and publish them on the cmd node of the base. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2aaed352ce09a4a18b14ee33960fa40b"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceelectron_teleop.html#a2aaed352ce09a4a18b14ee33960fa40b">electronTeleop.teleopListener</a> ()</td></tr>
<tr class="memdesc:a2aaed352ce09a4a18b14ee33960fa40b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts the ros node and subscribes to the electron node.  <a href="namespaceelectron_teleop.html#a2aaed352ce09a4a18b14ee33960fa40b">More...</a><br /></td></tr>
<tr class="separator:a2aaed352ce09a4a18b14ee33960fa40b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e907d16d4abea87c720185c58fffd34"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceelectron_teleop.html#a4e907d16d4abea87c720185c58fffd34">electronTeleop.teleopCallback</a> (msg)</td></tr>
<tr class="memdesc:a4e907d16d4abea87c720185c58fffd34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback of the node subscription, parses the JSON string.  <a href="namespaceelectron_teleop.html#a4e907d16d4abea87c720185c58fffd34">More...</a><br /></td></tr>
<tr class="separator:a4e907d16d4abea87c720185c58fffd34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1709ad691e0e812082578aeea7a73488"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceelectron_teleop.html#a1709ad691e0e812082578aeea7a73488">electronTeleop.runCommand</a> (data)</td></tr>
<tr class="memdesc:a1709ad691e0e812082578aeea7a73488"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the data in the Twist object and publishes them.  <a href="namespaceelectron_teleop.html#a1709ad691e0e812082578aeea7a73488">More...</a><br /></td></tr>
<tr class="separator:a1709ad691e0e812082578aeea7a73488"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a451494e5076bad8957b7f4f6488d0f08"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceelectron_teleop.html#a451494e5076bad8957b7f4f6488d0f08">electronTeleop.vel_msg</a> = Twist()</td></tr>
<tr class="separator:a451494e5076bad8957b7f4f6488d0f08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4c9cba70f72eba974bdfdbca27a6d10"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceelectron_teleop.html#ab4c9cba70f72eba974bdfdbca27a6d10">electronTeleop.publisher</a> = rospy.Publisher('/cmd_vel', Twist, queue_size=10)</td></tr>
<tr class="separator:ab4c9cba70f72eba974bdfdbca27a6d10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
